package com.example;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class Now extends Activity {

    private EditText lat;
    private EditText lon;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        lat = (EditText)findViewById(R.id.lat);
        lon = (EditText)findViewById(R.id.lon);
    }

    public void showMe(View v)
    {
        String _lat = lat.getText().toString();
        String _lon = lon.getText().toString();
        Uri uri = Uri.parse("geo:" + _lat + "," + _lon);
        startActivity(new Intent(Intent.ACTION_VIEW, uri));
    }

}
